package com.weipai.demo.service;


import com.weipai.demo.model.DUser;
import com.weipai.demo.util.Response;

public interface UserService {
    DUser getUserByLoginName(String userName);
    DUser getUserByLoginUserId(String userId);
    Response login(String userName, String password, int type);

    //用户注册
    Response saveUser(String userName, String password, String email);
    //退出登录
    Response loginOut();

    //管理员重置密码
    Response resetUserPassword(String userId, String oldPassword, String newPassword, String twoPassword);

    }
